package com.example.mapper;
import com.example.pojo.LabourContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.per.LContractByAll;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 劳动合同表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-04-24
 */
@Mapper
@Repository
public interface LabourContractMapper extends BaseMapper<LabourContract> {

    @MapKey("lcId")
    List<Map<String,Object>> selByAll(@Param("lcba") LContractByAll lcba);

    @MapKey("id")
    List<Map<String,Integer>> countByLcm();
}
